package com.erp.erp_entitys.ProductMainInfo;

import java.io.Serializable;
import java.util.List;

/**
 * @author 
 * 产品主信息
 */
public class ProductMainInfoVoEntity extends ProductMainInfoEntity implements Serializable {
    /**
     * 所属目录名称 含上级
     */
    private String cataCodeNameCombine;
    /**
     * 退税率
     */
   private String taxRate;
    /**
     * 关税税率
     */
   private String importTariff;
    /**
     * 产品图片
     */
   private String img;
    /**
     * 产品文件
     */
   private String wj;

    /**
     * 是否停用
     */
   private String deactivateTypeStr;

    /**
     * 产品图片集合
     */
   private List<String> imgList;

    /**
     * 产品文件集合
     */
   private List<String> wjList;

    public String getCataCodeNameCombine() {
        return cataCodeNameCombine;
    }

    public void setCataCodeNameCombine(String cataCodeNameCombine) {
        this.cataCodeNameCombine = cataCodeNameCombine;
    }

    public List<String> getImgList() {
        return imgList;
    }

    public void setImgList(List<String> imgList) {
        this.imgList = imgList;
    }

    public List<String> getWjList() {
        return wjList;
    }

    public void setWjList(List<String> wjList) {
        this.wjList = wjList;
    }

    public String getDeactivateTypeStr() {
        return deactivateTypeStr;
    }

    public void setDeactivateTypeStr(String deactivateTypeStr) {
        this.deactivateTypeStr = deactivateTypeStr;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getWj() {
        return wj;
    }

    public void setWj(String wj) {
        this.wj = wj;
    }

    public String getTaxRate() {
        return taxRate;
    }

    public void setTaxRate(String taxRate) {
        this.taxRate = taxRate;
    }

    public String getImportTariff() {
        return importTariff;
    }

    public void setImportTariff(String importTariff) {
        this.importTariff = importTariff;
    }
    public  ProductMainInfoVoEntity conver(ProductMainInfoEntity pme){
        ProductMainInfoVoEntity pmve=new ProductMainInfoVoEntity();
        pmve.setCode(pme.getCode());
        pmve.setBzsm(pme.getBzsm());
        pmve.setCataCode(pme.getCataCode());
        pmve.setChinaName(pme.getChinaName());
        pmve.setCpjz(pme.getCpjz());
        pmve.setCpmz(pme.getCpmz());
        pmve.setCustomerCode(pme.getCustomerCode());
        pmve.setEnglishName(pme.getEnglishName());
        pmve.setGe(pme.getGe());
        pmve.setGecode(pme.getGecode());
        pmve.setHgCode(pme.getHgCode());
        pmve.setId(pme.getId());
        pmve.setRemark(pme.getRemark());
        pmve.setUpCataCode(pme.getUpCataCode());
        pmve.setChinaRemark(pme.getChinaRemark());
        pmve.setUnit(pme.getUnit());
        switch (pme.getDeactivateType()){
            case 0:
                pmve.setDeactivateTypeStr("已停用");
                break;
            case 1:
                pmve.setDeactivateTypeStr("未停用");
                break;
            default:
                pmve.setDeactivateTypeStr("");
        }
        pmve.setDeactivateType(pme.getDeactivateType());
        pmve.setProductType(pme.getProductType());
        return pmve;
    }
}